﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Menu : SceneBase 
    {
        Texture2D cenario, cenario2;
        Texture2D fundo, title, creditos, newGame;

        
        public override void start()
        {




            cenario = Game1.instance.Content.Load<Texture2D>("fundo_menu");
            creditos = Game1.instance.Content.Load<Texture2D>("creditos");
            title = Game1.instance.Content.Load<Texture2D>("titulo_menu");
            newGame = Game1.instance.Content.Load<Texture2D>("newGame");
            


            
            



        }


        public override void draw(SpriteBatch spriteBatch)
        {

            
            spriteBatch.Draw(cenario, Vector2.Zero, Color.White);
            //spriteBatch.Draw(newGame, Vector2.Zero, Color.White);
            
            spriteBatch.Draw(title, Vector2.Zero, Color.White);
            //fundo3.Draw(spriteBatch);

        }


        public override void update()
        {

            if (Keyboard.GetState().IsKeyDown(Keys.Enter))
            {

                SceneManager.setScene(new Estagio1());

            }



        }


        public override void terminate()
        {

        }
    }
}
